package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Duty;
import cn.wolfcode.crm.query.DutyQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DutyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Duty entity);

    Duty selectByPrimaryKey(Long id);

    List<Duty> selectAll();

    int updateByPrimaryKey(Duty entity);



    int query4Count(DutyQueryObject qo);
    List<Duty> query4List(DutyQueryObject qo);



    /*检查当前用户当天是否已经打卡,返回1,表示已经打卡;返回0:表示当天没有打卡*/
  List<Duty> checkreSignOn(@Param("date") Date date, @Param("id")Long id);

    /**
     * 签到退
     * @param date
     * @param id
     */
  void   signOff(@Param("date") Date date, @Param("id")Long id);










}